import request from './request'

// 登录接口
export const loginApi = (data) => {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}

// 获取用户列表
export const getUserList = (data) => {
    return request({
        url: '/user/list',
        method: 'post',
        data
    })
}

// 获取商品列表
export const getProductList = (data) => {
    return request({
        url: '/product/list',
        method: 'post',
        data
    })
}